
import javax.swing.JFrame;

import gui.ControlPanel;
import gui.Form;
import Controller.SimulatorController;
import Controller.SimulatorObject.SimulatorObjectType;
import connection.Relay;



/**
 *
 * @author imahilus
 */
public class Main
{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)
    {
        Relay relay = new Relay();
        Form form = new Form();
        SimulatorController control = new SimulatorController(relay, form);
        ControlPanel controlpanel = new ControlPanel(relay);
        
        JFrame mainFrame = new JFrame("Simulator");
        mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        
        JFrame controlFrame = new JFrame("Control");
        controlFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        //mainFrame.setLayout(null);
        
        controlFrame.add(controlpanel);
        controlFrame.pack();
        controlFrame.setVisible(true);
        
        mainFrame.add(form);
        mainFrame.pack();
        mainFrame.setVisible(true);
    }

}
